package lab03.test02;

import com.sun.prism.shader.FillEllipse_Color_AlphaTest_Loader;

import java.io.File;


public class Test {
    public static void main(String[] args) {

        File file =new File("D:\\");
        for (File f : file.listFiles()){
            if (f.isFile()){
                System.out.println("文件："+f.getName());
            }
            if (f.isDirectory()){
                System.out.println("目录："+f.getName());
            }
            //System.out.println(f.getName());
        }
    }
}
